package com.copa.gamestore.module.gameGoods.dto;

import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author copa
 * @createDate 2022-09-27 09:40
 * @function
 */
@Data
public class GameGoodsDto {

    private Long id;

    @NotEmpty(message = "游戏名不允许为空")
    private String name;

    @DecimalMin(value = "0.01", message = "价格格式不正确")
    private BigDecimal price;

    private List<String> tag;

    private String developCompany;

    private String mainPicUrl;

    private List<String> picUrl;

    private String content;

    @Min(value = 0, message = "商品库存不能为负数~")
    private Integer num;

    private Boolean isEnabled;
}
